<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="../lib/jquery.js"></script>
</head>
<body>
    <div>
        parent
    </div>
    <iframe style="border:1px solid red;width:500px;height:20000px;margin:auto;" id="frame" src="/data/demo/javascript/iframe/test2.html" frameborder="0"></iframe>
<script>
    function demo(a){
        var src= a.split("#")[1];
        $("#frame").height(Number(src) + 100);
        console.log(src)
    }
</script>
</body>
</html>